

import require from '@/utils/instance'

type LoginData = {
  user: string,
  pass: string
} | {
  token: string
}

const login = (userData: LoginData) => {
  require.post('/login', userData)

}

const regist = (registData: LoginData) => {
  require.post('/regist', registData)

}

export { login, regist }
